﻿using UnityEngine;
using System.Collections;

public class Cloud : MonoBehaviour {

	float speed;
	// Use this for initialization
	void Start () {
		speed = Random.Range (0.03f, 0.005f);
	}
	
	// Update is called once per frame
	void Update () {
		transform.Translate(Vector3.left*speed);
		if(transform.position.x<-0.5)
		{
			Destroy(gameObject);
		}
	}
}
